6bd3301ba1a5a63c244d33449bdccf6115f1755e,components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/FallbackTypeConverter.java,FallbackTypeConverter,getOrCreateUnmarshaller,#Class#,253

Before Change


        Unmarshaller unmarshaller = unmarshallers.get(type);
        if (unmarshaller == null) {
            JAXBContext context = createContext(type);
            unmarshaller = context.createUnmarshaller();
            unmarshallers.put(type, unmarshaller);
        }
        return unmarshaller;
    }

    public XMLOutputFactory getOutputFactory() {

After Change



    protected synchronized <T> Unmarshaller getOrCreateUnmarshaller(Class<T> type) throws JAXBException {
        JAXBContext context = createContext(type);
        return context.createUnmarshaller();
    }

}